#include "cingredientnutrition.h"

using namespace cooking;

CIngredientNutrition::CIngredientNutrition()
{
}

int CIngredientNutrition::ingredientId() {
    return m_ingredient_id;
}

void CIngredientNutrition::setIngredientId(int ingredientId) {
    if (m_ingredient_id != ingredientId) {
        m_ingredient_id = ingredientId;
        emit ingredientIdChanged();
    }
}

int CIngredientNutrition::nutritionId() {
    return m_nutrition_id;
}

void CIngredientNutrition::setNutritionId(int nutritionId) {
    if (m_nutrition_id != nutritionId) {
        m_nutrition_id = nutritionId;
        emit nutritionIdChanged();
    }
}

double CIngredientNutrition::ingredientQuantity() {
    return m_ingredient_quantity;
}

void CIngredientNutrition::setIngredientQuantity(double quantity) {
    if (m_ingredient_quantity != quantity) {
        m_ingredient_quantity = quantity;
        emit ingredientQuantityChanged();
    }
}

double CIngredientNutrition::nutritionQuantity() {
    return m_nutrition_quantity;
}

void CIngredientNutrition::setNutritionQuantity(double quantity) {
    if (m_nutrition_quantity != quantity) {
        m_nutrition_quantity = quantity;
        emit nutritionQuantityChanged();
    }
}
